//
//  RegisterApi.m
//  SmartiOSPublisher
//
//  Created by Liu,Qingcan on 2017/4/26.
//  Copyright © 2017年 Baidu. All rights reserved.
//

#import "RegisterApi.h"


@implementation RegisterApi{
    LEUserItem *_user;
}
- (id)initWithUserEntity:(LEUserItem *)user{
    self = [super init];
    if (self) {
        _user = user;
    }
    return self;
}

- (NSString *)requestUrl{
    return @"/user/register";
}

- (YTKRequestSerializerType)requestSerializerType{
    return YTKRequestSerializerTypeJSON;
}

- (YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

/**
 * 这个传递的是整个实体，不止会不会有问题，待测试
 */
- (id)requestArgument{
    return _user;
}



@end
